package com.lagou.task2;

public class Node {
    public Node next;
    private int key;
    private String value;

    public Node() {
    }

    @Override
    public String toString() {
        return "Node{" +
                "next=" + next +
                ", key=" + key +
                ", value='" + value + '\'' +
                '}';
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Node( int key, String value) {

        this.key = key;
        this.value = value;
    }
}
